import request from '@/utils/request'

// 获取档案盒规格
export function boxspecList(query){
  return request({
    url: '/archive/boxspec/boxspecList',
    method: 'get',
    params: query
  })
}

// 获取档案盒记录列表
export function getBoxRecord(query) {
  return request({
    url: '/archive/boxRecord/list',
    method: 'get',
    params: query
  })
}

// 新增档案盒记录
export function addBoxRecord(data) {
  return request({
    url: '/archive/boxRecord',
    method: 'post',
    data: data
  })
}

// 获取档案盒记录详情
export function getDetail(id) {
  return request({
    url: '/archive/boxRecord/' + id,
    method: 'get'
  })
}

// 修改档案盒记录
export function updateBoxRecord(data) {
  return request({
    url: '/archive/boxRecord',
    method: 'put',
    data: data
  })
}

// 删除档案盒记录
export function deleteBoxRecord(id) {
  return request({
    url: '/archive/boxRecord/' + id,
    method: 'delete'
  })
}
